list of string to byte array python